From 5238d5a2f0865ff7ad55d7c686688eb61543e5cb Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 5 Jun 2007 10:00:15 +0100 Subject: [PATCH] console daemon: Fix realloc() usage. Signed-off-by: Keir Fraser --- tools/console/daemon/io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 71bc47925b..29090db506 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -191,6 +191,7 @@ static int create_domain_log(struct domain *dom) free(namepath); return -1; } + namepath = s; strcat(namepath, "/name"); data = xs_read(xs, XBT_NULL, namepath, &len); if (!data) -- 2.30.2